package com.kichina.parking.service.logic.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 车场状态信息记录表
 * </p>
 *
 * @author Surging
 * @since 2022-10-09
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class YardStatusInfo extends Model<YardStatusInfo> {

    private static final long serialVersionUID = 1L;

    /**
     * 车场状态ID
     */
    @TableId(value = "yard_status_id", type = IdType.UUID)
    private String yardStatusId;

    /**
     * 车场十位code码
     */
    private String yardKey;

    /**
     * 车场密码（对应房屋ID)
     */
    private String yardPassword;

    /**
     * 车场在线状态
     */
    private Boolean isOnline;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 更新时间
     */
    private Date updateTime;


    @Override
    protected Serializable pkVal() {
        return this.yardStatusId;
    }

}
